<template>
  <div id="Top">
    <x-header slot="header" style="width:100%;position:absolute;left:0;top:0;z-index:100;"
              :left-options="{showBack: false, backText: ''}" :right-options="{showMore: false}"
              @on-click-more="showMenus = true">{{title}}<router-link slot="right" to="/item/wallet/account">明细列表</router-link>
    </x-header>
  </div>
</template>

<script>
  import {mapState} from 'vuex'
  import {XHeader, TransferDom, cookie} from 'vux'

  export default {
    directives: {
      TransferDom
    },
    components: {
      XHeader
    },
    computed: {
      ...mapState({
        showBack: state => state.vux.showBack,
        title: state => state.vux.title
      })
    },
    data () {
      return {

      }
    },
    methods: {
      // goToUrl(path) {
      //   if (path) {
      //     console.log(path)
      //   }
      //   let vue = this
      // }
    }
  }
</script>
<style lang="less">
  #Top .vux-header-title {
    font-size: 16px;
  }
  #Top .menu {
    margin-right: 70px;
  }
  #Top .menu div {
    color: #000;
  }
  #Top .menu:before {
    right: -70px;
  }
  #Top .vux-header{
    background-color: #ffffff !important;
    .vux-header-title{
      color:#61635f !important;
    }
    .vux-header-right a{
      color: #999999 !important;
    }
  }
</style>
